package kr.saeildamil.androidstudy.example01;

import kr.saeildamil.androidstudy.R;
import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.Menu;
import android.view.View;

public class MActivity extends Activity {
	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.activity_main);
	}
	
	public void mOnClick(View v){
		switch(v.getId()){
		case R.id.btnandedit_btn:
			startActivity(new Intent(this, ExButtonAndEditText.class));
			break;
		/*case R.id.imageviewtest_btn:
			startActivity(new Intent(this, ExImageViewTest.class));
			break;*/
		case R.id.main_weight_btn:
			startActivity(new Intent(this,ExGravity.class));
			break;
		case R.id.main_padding_btn:
			startActivity(new Intent(this,ExPadding.class));
			break;
		case R.id.main_relative_btn:
			startActivity(new Intent(this,ExRelative.class));
			break;
			
		}
	}
	@Override
	public boolean onCreateOptionsMenu(Menu menu) {
		// TODO Auto-generated method stub
		return super.onCreateOptionsMenu(menu);
	}
}
